package cn.tqfeiyang.smartadmin.business.organization.request;

import java.time.LocalDateTime;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.*;
import lombok.Data;

import java.io.Serializable;

/**
 * 部门修改请求
 *
 * @author tqfeiyang
 * @since 2024-10-18
 */
@Data
public class DepartmentUpdateDTO implements Serializable {

    /**
     * 上级id
     */
    @Schema(description = "上级id")
    private Long parentId;

    /**
     * 名称
     */
    @Schema(description = "名称")
    @Size(max = 50, message = "名称长度不能超过50字符")
    private String name;

    /**
     * 备注
     */
    @Schema(description = "备注")
    private String remark;

    /**
     * 排序
     */
    @Schema(description = "排序")
    private Integer sort;
}